import React from 'react';
import { Button } from 'antd';

interface Greeting {
  name: string;
  firstName?: string,
  lastName?: string
};

const HelloWorld2: React.FC<Greeting> = ({ name, firstName, lastName }) => <div>
  <Button>{name}</Button>
  <Button>{firstName}</Button>
  <Button>{lastName}</Button>
</div>;

HelloWorld2.defaultProps = {
  firstName: 'ataola',
  lastName: 'super'
};
export default HelloWorld2;
